package com.g4.shoppingback.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.g4.shoppingback.pojo.DdSubOrderInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DdSubOrderInfoMapper extends BaseMapper<DdSubOrderInfo> {

    /**
     * 根据名称查询条数
     * @param query
     * @return
     */
    Long selectTotal(String query);

    /**
     * 根据分页信息或商品名查询商品明细
     * @param query 关键字
     * @param orId 订单id
     * @param pageStart 第几条
     * @param pageSize 每页几条
     * @return
     */
    List<DdSubOrderInfo> selectUserByPaged(@Param("query") String query, @Param("orId") String orId,
                                           @Param("pageStart") Integer pageStart, @Param("pageSize") Integer pageSize);
}
